package top.honlnk.czuan.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import top.honlnk.czuan.pojo.entity.Power;

import java.util.List;

@Mapper
public interface PowerMapper {

    @Select("select * from power")
    List<Power> getAllPower();

    @Select("select name from power")
    List<String> getAllPowerName();

    List<Integer> selectValuesByNames(List<String> nameList);

    List<String> selectNamesByValues(List<Integer> permissionValues);

    List<Power> selectPowerByValues(List<Integer> values);

    List<String> findExistPermission(List<String> permissionList);

    List<Integer> findExistPermissionValues(List<Integer> permissionList);
}
